﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Navbar.ascx.cs" Inherits="Navbar" %>
<link href="/App_Themes/bootstrap-3.2.0-dist/css/bootstrap.min.css" rel="stylesheet" />
<script src="/App_Themes/bootstrap-3.2.0-dist/js/jquery.min.js"></script>
<script src="/App_Themes/bootstrap-3.2.0-dist/js/bootstrap.min.js"></script>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="/Index.aspx#">59同城</a>
        </div>
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class='<%#Request.RawUrl=="/Home.aspx"?"active":"" %>'><a href="/Home.aspx">个人主页</a></li>
                <li class='<%#Request.RawUrl=="/Houses.aspx"?"active":"" %>'><a href="/Houses.aspx">房源</a></li>
                <li class='<%#Request.RawUrl=="/.aspx"?"active":"" %>'><a href="#">求租</a></li>
                <li class='<%#Request.RawUrl=="/.aspx"?"active":"" %>'><a href="#">关于</a></li>
            </ul>
            <div class="navbar-right" style="margin-top:10px">
                <div class='<%#IsLogin?"hidden":"" %>'>
                    <a href="../Login.aspx" class="btn btn-default btn-md">登陆</a>
                    <a href="../Register.aspx" class="btn btn-default btn-md">注册</a>
                </div>
                <div class='<%#IsLogin?"":"hidden" %>'>
                    <a href="/Home.aspx" class="btn btn-link btn-md"><%#Nickname %></a>
                    <a class="btn-link" href="Logout.aspx">退出</a>
                </div>
                
            </div>
        </div>

    </div>

</nav>
<nav class="navbar navbar-inverse navbar-static-top" role="navigation"></nav>
